import request from '@/utils/request'

// 查询幻灯片列表
export function listSlide(query) {
  return request({
    url: '/cms/slide/list',
    method: 'get',
    params: query
  })
}

// 查询幻灯片详细
export function getSlide(id) {
  return request({
    url: '/cms/slide/' + id,
    method: 'get'
  })
}

// 新增幻灯片
export function addSlide(data) {
  return request({
    url: '/cms/slide',
    method: 'post',
    data: data
  })
}

// 修改幻灯片
export function updateSlide(data) {
  return request({
    url: '/cms/slide',
    method: 'put',
    data: data
  })
}

// 删除幻灯片
export function delSlide(id) {
  return request({
    url: '/cms/slide/' + id,
    method: 'delete'
  })
}
